package com.mogu.comment.service.impl;

import com.mogu.comment.mapper.CommentUserMapper;
import com.mogu.comment.service.FindUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:不在能知，而在能行
 *
 * @author: 梁西华
 * @date: 2020/6/15/11:34
 **/
@Service
public class FindUserServiceImpl implements FindUserService {

    @Autowired
    CommentUserMapper commentUserMapper;

    /**
     * 根据博客id查询用户的邮箱
     * @param toUserUid
     * @return
     */
    @Override
    public String findEmailByBlogUid(String toUserUid) {

        System.out.println("服务层查邮箱"+this.commentUserMapper.findEmailByBlogUid(toUserUid));

        return this.commentUserMapper.findEmailByBlogUid(toUserUid);
    }
}
